<template>
  <div>
</div>
</template>
<script>
import axios from 'axios' 
  export default {
    data() {
      return {
      };
    },
    methods: {
  },
  created(){
    axios({
        method: 'get',
        url:'https://www.runoob.com/try/ajax/json_demo.json'
    }).then(res=>{
        console.log( res );
    })
    .catch(error =>{
        console.log('出错啦',error);
    });
  }
}
</script>